package com.bbt.dormassistant.service;

import com.bbt.dormassistant.entity.Record;

import java.util.List;

public interface RecordService {

    /**
     *
     * @param userId 用户ID
     * @param currIndex 当前页码
     * @param pageSize 页大小
     * @return List<Record>
     */
    List<Record> getRecordByUserId(String userId,Integer currIndex,Integer pageSize);


    /**
     * \
     * @param roomId 房间ID
     * @param currIndex 当前页
     * @param pageSize 页大小
     * @return List<Record>
     */
    List<Record> getRecordByRoomId(Integer roomId,Integer currIndex,Integer pageSize);


    Boolean addRecord(Record record);

    /**
     *
     * @param currIndex 当前页
     * @param pageSize 页大小
     * @return List<Record>
     */
    List<Record> queryAll(Integer currIndex,Integer pageSize);


    /**
     *
     * @param recordId
     * @return Record
     */
    Record getRecordByRecordId(Integer recordId);

    Boolean updateRecord(Record record);
}
